package com.alb.common.constants;

/**
 * 该网关中处理的两种协议，一个是http另一个就是dubbo
 * @author MattS
 * @date 2024/04/23
 */
public interface GatewayProtocol {

    String HTTP = "http";

    String DUBBO = "dubbo";

    static boolean isHttp(String protocol) {
        return HTTP.equals(protocol);
    }

    static boolean isDubbo(String protocol) {
        return DUBBO.equals(protocol);
    }

}